/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: avaj llik
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tcp_personaCriteria extends AbstractORMCriteria {
	public final IntegerExpression pers_id;
	public final StringExpression pers_rut;
	public final StringExpression pers_nombre;
	public final StringExpression sexo;
	
	public Tcp_personaCriteria(Criteria criteria) {
		super(criteria);
		pers_id = new IntegerExpression("pers_id", this);
		pers_rut = new StringExpression("pers_rut", this);
		pers_nombre = new StringExpression("pers_nombre", this);
		sexo = new StringExpression("sexo", this);
	}
	
	public Tcp_personaCriteria(PersistentSession session) {
		this(session.createCriteria(Tcp_persona.class));
	}
	
	public Tcp_personaCriteria() throws PersistentException {
		this(orm.TallerdeSOAPersistentManager.instance().getSession());
	}
	
	public Tcp_publicacionCriteria createTcp_publicacionCriteria() {
		return new Tcp_publicacionCriteria(createCriteria("ORM_tcp_publicacion"));
	}
	
	public Tcp_persona uniqueTcp_persona() {
		return (Tcp_persona) super.uniqueResult();
	}
	
	public Tcp_persona[] listTcp_persona() {
		return (Tcp_persona[]) super.list().toArray(new Tcp_persona[super.list().size()]);
	}
}

